<Project>
  <Import Project="$(RepositoryEngineeringDir)testing\tests.mobile.targets" Condition="'$(RuntimeIdentifier)' == 'browser-wasm'" />
  <Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" />

  <PropertyGroup>
    <BundleDir>$([MSBuild]::NormalizeDirectory('$(MSBuildProjectDirectory)', '$(OutputPath)', 'AppBundle'))</BundleDir>
    <WasmMainAssemblyFileName>project.dll</WasmMainAssemblyFileName>
  </PropertyGroup>

  <Target Name="CreateTestWasmAppBundle"
          AfterTargets="Publish"
          DependsOnTargets="BundleTestWasmApp"
          Condition="'$(TargetArchitecture)' == 'wasm' And '$(TargetOS)' == 'browser'" />

  <PropertyGroup Condition="'$(PublishAot)' == 'true'">
    <_IlcReferencedAsPackage>false</_IlcReferencedAsPackage>
    <ILCompilerTargetsPath>$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.SingleEntry.targets</ILCompilerTargetsPath>
  </PropertyGroup>

  <!-- Overriding these targets as these projects won't need to binplace -->
  <Target Name="PublishTestAsSelfContained" />

</Project>
